<template>
  <div id="wrap">
    <el-table
      :data="tabConfig.tableData"
      style="width: 100%"
      :header-cell-style="tabConfig.tabStyle" 
      ref='table'
    >
      <el-table-column v-for="(item,index) in tabConfig.tabCount" :key="index" :type="item.type" :prop="item.prop" :label="item.label"> 
      </el-table-column>

      <el-table-column label="操作">
        <template slot-scope="scope">
          <el-button type="danger" size="mini" @click="del(scope)">删除</el-button>
        </template>
      </el-table-column>

    </el-table>
  </div>
</template>

<script>
export default {
  name: "etab",
  props: {
    tabConfig: {
      type: Object
    }
  },
  methods: {
    del(info){
      this.$emit("del", info)
    }
  }
}
</script>

<style>

</style>